<template>
  <div class="hello">
    子组件:
    <br>
    <slot name="header"></slot>
    <br>
    <slot :a="msg" name="abc"></slot>
    <br>
    <slot :b='msg' name="footer"></slot>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'HelloWorld'
    }
  }
}
</script>

<style scoped>

</style>
